package com.xiaoxing.zhinenghuacangku_rizhao.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_rizhao.mvp.contract.RiZhao_DianBiaoAGVRuKuContract;
import com.xiaoxing.zhinenghuacangku_rizhao.mvp.model.RiZhao_DianBiaoAGVRuKuModel;


@Module
public class RiZhao_DianBiaoAGVRuKuModule {
    private RiZhao_DianBiaoAGVRuKuContract.View view;

    /**
     * 构建RiZhao_DianBiaoAGVRuKuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public RiZhao_DianBiaoAGVRuKuModule(RiZhao_DianBiaoAGVRuKuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    RiZhao_DianBiaoAGVRuKuContract.View provideRiZhao_DianBiaoAGVRuKuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    RiZhao_DianBiaoAGVRuKuContract.Model provideRiZhao_DianBiaoAGVRuKuModel(RiZhao_DianBiaoAGVRuKuModel model) {
        return model;
    }
}